<?php

class RumorBlockWidget extends BaseWidget
{
    public $oRumors = array();

    public function init()
    {
        $oRumorCriteria            = new CDbCriteria();
        $oRumorCriteria->condition = 'rumor_active = 1';
        $oRumorCriteria->order     = 'rumor_cdate DESC';
        $oRumorCriteria->limit     = 5;


        $this->template->oRumors   = Rumor::model()->findAll($oRumorCriteria);
    }
}